package com.kfm.springmybatis.dao;

import com.kfm.springmybatis.model.Dept;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DeptMapper {
    /**
     * insert record to table
     * @param record the record
     * @return insert count
     */
    int insert(Dept record);

    /**
     * insert record to table selective
     * @param record the record`
     * @return insert count
     */
    int insertSelective(Dept record);

    /**
     * 一对多多表查询
     * @return
     */
    List<Dept> selectAll();

    List<Dept> selectAll3();

    List<Dept> selectByPrimaryKey(Integer deptNo);

}